﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GameForm.Gamelib
{
    public class 运镖Task:TaskBase
    {

        protected override async Task<bool> OnOther()
        {
            if (api.CheckColor(619, 433, "49311f") && api.CheckColor(373, 283, "ddac6f"))//交押金
            {
                api.LeftClick(619, 433);
                return true;
            }
            else if (api.CheckColor(170, 94, "ffeb7b") && api.CheckColor(946, 681, "fff7a5")) //运镖中
                return true;
            return await base.OnOther();
        }

    }
}
